import request from '@/utils/request'

// 查询入库单体列表
export function listBody(query) {
  return request({
    url: '/api/inboundOrderBody/page',
    // url: '/api/inbound/order/task/page',
    method: 'get',
    params: query
  })
}

// 获取父亲详情
export function getInboundInfoAPI(data) {
  return request({
    url: `/api/inboundOrder/detail/${data}`,
    method: 'get',
    data: data
  })
}

// 查询入库单体详细
export function getBody(id) {
  return request({
    url: '/api/inboundOrderBody/' + id,
    method: 'get'
  })
}

// 新增入库单体
export function addBody(data) {
  return request({
    url: '/api/inboundOrderBody/add',
    method: 'post',
    data: data
  })
}

// 修改入库单体
export function updateBody(data) {
  return request({
    url: '/api/inboundOrderBody/update',
    method: 'post',
    data: data
  })
}

// 删除入库单体
export function delBody(id) {
  return request({
    url: '/api/inboundOrderBody/delete/' + id,
    method: 'post'
  })
}
